import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'list_view.dart';

void main() => runApp(Home());

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'hello world',
      home: Scaffold(
        body: MovieView(),
        appBar: CupertinoNavigationBar(
          middle: Text('Top 150 Movies'),
          leading: Icon(
            Icons.chevron_left,
            color: Colors.blue,
          ),
          trailing: Text(
            'Exit',
            style: TextStyle(color: Colors.blue),
          ),
        ),
      ),
    );
  }
}
